package com.droowa.domain;

import java.io.Serializable;

public class DeliveryOption implements Serializable{
	
	private String deliveryMeans;
	private String deliveryFeeOption;
	private String returnAdd;
	
	public DeliveryOption() {
		super();
	}
	public DeliveryOption(String deliveryMeans, String deliveryFeeOption,
			String returnAdd) {
		super();
		this.deliveryMeans = deliveryMeans;
		this.deliveryFeeOption = deliveryFeeOption;
		this.returnAdd = returnAdd;
	}
	public String getDeliveryMeans() {
		return deliveryMeans;
	}
	public void setDeliveryMeans(String deliveryMeans) {
		this.deliveryMeans = deliveryMeans;
	}
	public String getDeliveryFeeOption() {
		return deliveryFeeOption;
	}
	public void setDeliveryFeeOption(String deliveryFeeOption) {
		this.deliveryFeeOption = deliveryFeeOption;
	}
	public String getReturnAdd() {
		return returnAdd;
	}
	public void setReturnAdd(String returnAdd) {
		this.returnAdd = returnAdd;
	}
	@Override
	public String toString() {
		return "DeliveryOption [deliveryMeans=" + deliveryMeans
				+ ", deliveryFeeOption=" + deliveryFeeOption + ", returnAdd="
				+ returnAdd + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((deliveryFeeOption == null) ? 0 : deliveryFeeOption
						.hashCode());
		result = prime * result
				+ ((deliveryMeans == null) ? 0 : deliveryMeans.hashCode());
		result = prime * result
				+ ((returnAdd == null) ? 0 : returnAdd.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeliveryOption other = (DeliveryOption) obj;
		if (deliveryFeeOption == null) {
			if (other.deliveryFeeOption != null)
				return false;
		} else if (!deliveryFeeOption.equals(other.deliveryFeeOption))
			return false;
		if (deliveryMeans == null) {
			if (other.deliveryMeans != null)
				return false;
		} else if (!deliveryMeans.equals(other.deliveryMeans))
			return false;
		if (returnAdd == null) {
			if (other.returnAdd != null)
				return false;
		} else if (!returnAdd.equals(other.returnAdd))
			return false;
		return true;
	}
	
	
	
	
}
